package cn.cnf.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * (subscribe)实体类
 *
 * @author ZhuMeiYi
 * @description
 * @since 2020-12-25 12:19:41
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("subscribe")
public class Subscribe extends Model<Subscribe> implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    /**
     * 用户id
     */
    private String userId;
    /**
     * 作品id
     */
    private String subscribeId;
    /**
     * 章节id
     */
    private String chapterId;
    /**
     * 类型
     */
    private Integer type;
    /**
     * 时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

}